package com.dongchedi.mapper;

import com.dongchedi.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.sql.Timestamp;
/**
 * @author leibidong
 * @description 订单详情mapper对象
 * @date 2021/6/23
 */
@Mapper
@Component
public interface OrderDetailMapper {
    public OrderDetail queryByOrderId(Integer customerId,Integer orderId);
    public Integer insertByOrderMaster(OrderDetail orderDetail);
    public OrderDetail selectByOrderId(Integer customerId, Integer orderId);
    public Integer updateOrderStatus(Integer customerId, Integer orderDetailId, Timestamp payTime);
    public OrderDetail queryByOrderDetailId(Integer customerId,Integer orderDetailId);
}
